package com.foreknow.demo;

public class Student {
    static {
        System.out.println("2222222");
    }
    public static final int COUNT = 0;
    public  String sname;
    public static int count;
    public static void test(){
        System.out.println("1111111");
    }

    public static void main(String[] args) {
        Student s1 = new Student();
        s1.sname = "tom";
        Student.count = 1;
        Student s2 = new Student();
        s2.sname = "fender";
        Student.count = 100;
        System.out.println(s1.sname);
        System.out.println(s1.count);
        System.out.println(s2.sname);
        System.out.println(s2.count);
        Student.test();
    }
}
